/**
 * OrderInfoMapperExt
 * Copyright © 2015 - 2017 
 * All rights reserved.
 * -----------------------------------
 * 2018-06-06  Created
 */
package com.lzy.cloud.order.mapper;

import com.lzy.cloud.order.dos.OrderActions;
import com.lzy.cloud.order.dos.OrderStatusReturnDO;
import com.lzy.cloud.order.dtos.OrderInfoDto;
import com.lzy.cloud.order.dtos.pay.OrderPayDto;
import com.lzy.cloud.order.entity.OrderInfo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface OrderInfoMapperExt extends OrderInfoMapper {

    /**
     * 方法说明：根据条件查询数据列表
     * @date        2018/7/10 15:18
     */
    List<OrderInfoDto> queryList(@Param("param") OrderInfo orderInfo);

    /**
     * 方法说明：根据订单号查询支付信息
     * @date        2018/7/10 15:18
     */
    OrderPayDto findToPay(@Param("orderId") String orderId);
    
    /**
     * 方法说明：查询订单的状态
     * @date        2018/7/10 15:19
     */
    OrderStatusReturnDO selectByOrderId(@Param("orderId") String orderId, @Param("type") Integer type);

    /**
     * 方法说明：更新订单状态
     * @date   2018/7/10 15:46
     */
    Integer updateStatusByOrderId(@Param("action") OrderActions orderActions);

}